package net.tycmc.cty.ctyms.timejob.iems.service;

import net.tycmc.cty.ctyms.timejob.common.LogUtil;
import net.tycmc.cty.ctyms.timejob.iems.dao.UpdateEBPStateConn;

/**
 * 更新EBP状态
 * @author lixiaofan
 *
 */
public class UpdateEBPStateService {
	UpdateEBPStateConn uEBPConn;

	public UpdateEBPStateConn getuEBPConn() {
		return uEBPConn;
	}

	public void setuEBPConn(UpdateEBPStateConn uEBPConn) {
		this.uEBPConn = uEBPConn;
	}

	/**
	 * 更新EBP状态
	 */
	public void UpdateEBPState(){
		boolean flag = uEBPConn.UpdateEBPState();
		if(flag){
			LogUtil.info(this.getClass().getName(), "更新EBP状态---------成功！");
		}else{
			LogUtil.info(this.getClass().getName(), "更新EBP状态---------无数据需要更新或更新失败！");
		}
	}
}

